package com.scenic.common.service;

import com.github.pagehelper.PageInfo;
import com.scenic.common.bean.Order;
import com.scenic.common.exception.ScenicSpotException;

import java.util.HashMap;
import java.util.List;

public interface OrderService {
    //生成订单
    void insert(HashMap<String ,Object> ticketVo) throws ScenicSpotException;
    //用户修改订单
    boolean update(Order order, Integer userId) throws ScenicSpotException;
    //用户软删除订单
    boolean delete(Integer id);
    //根据用户id查询订单
    List<Order> selectByUserId(Integer userId) throws ScenicSpotException;
    //根据id查询订单
    Order selectById(String id, Integer userId) throws ScenicSpotException;
    PageInfo<Order> selectByCondition(Order condition, Integer pageNum, Integer pageSize) throws ScenicSpotException;

    void pay(HashMap<String ,Object> ticketVo) throws ScenicSpotException;

}
